<!DOCTYPE html>
<html lang="en">
<head>
    <title>等你约(北京)科技有限公司</title>
    <meta charset="utf-8">
    <!-- Loading Bootstrap -->
    <link href="{pigcms:$staticPath}/css/vendor/bootstrap.min.css" rel="stylesheet">

    <link href="{pigcms:$staticPath}/css/flat-ui.css" rel="stylesheet">

    <script src="{pigcms:$staticPath}/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8">
    </script>

    <meta name="viewport" content="width=device-width, initial-scale=1">


    <![endif]-->
    <style type="text/css">
        p{
            font-family:微软雅黑;
        }
    </style>
</head>

<body class="" id="">
<style>
    body {
        padding: 0px;
    }
    .navbar {
        margin-bottom: 0px;
    }

    .images{
        width: 370px;
        height: 190px;

    }
    .des{
        text-indent: 2em;
    }

    #footer{
        font-family: 微软雅黑;
    }



</style>
<style type="text/css">


    .container{
        border: solid #d8d8d8 1px;


    }
    *{
        padding:0px;
        margin: 0px;
    }

    body{
        /*background: #F0F0F0;*/
        background:url(./55.png) ;
    }

    #q{
        border: solid red 1px;
        position: absolute;
    }


</style>

<script type="text/javascript">


        $(function(){
var c=0;
//            $(".container").eq(0).show();
            $("ul li").click(function(){
            c = $(this).val();
                alert(c);
//
//            $(".container").eq(t).show().siblings(".container").hide();
//                $(".container").eq(t).hide().next(".container").show();

//
            var zhengque=$("#zhengque").eq(c).val();
//            var a =document.getElementsByName(t);
            var n;

//            for(var i=0;i<a.length;i++) {
//                if(a[i].checked) {n = a[i].value;break;}
//            }
//            if(zhengque==n){
//                alert("回答正确");
//            }else{
//                alert("回答错吴,正确答案为 "+zhengque+"");
//            }
            });

        });
</script>

<!--==============================
              header
=================================-->
<br/>



        <?php $i=1;?>
<p style=""class="text-center">答题</p>
    <?php foreach($wenti as $v):?>
<ul  class="container" style="">

           <p class="text-left"><span><?php echo $i;?> </span><?php echo $v['title'];?>( )</p>
                <label>
                    <input type="radio" name="<?php echo $i?>" value="A" id="ans" >A<?php echo $v['A'];?>
                </label><br>
                <label>
                    <input type="radio" name="<?php echo $i?>" value="B" id="ans">B<?php echo $v['B'];?>
                </label><br>
                <label>
                    <input type="radio" name="<?php echo $i?>" value="C" id="ans">C<?php echo $v['C'];?>
                </label><br>
                <label>
                    <input type="radio" name="<?php echo $i?>" value="D" id="ans">D<?php echo $v['D'];?>
                </label>
                 <input type="hidden" id="zhengque" value="<?php echo $v['correct'];?>" >

    <li  class="btn btn-primary btn-lg btn-block" value="赵佳">下一题</li>
    <?php $i++;?>
</ul>

    <?php endforeach;?>



<br>



</body>
</html>

